package com.aauedu.springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HiController {

//    @RequestMapping("/1.jpg")  //默认请求的路径和资源的名字冲突,在application.yml下配置static-path-pattern的前缀
    public String hi() {
        return "hi:):):)";
    }

//    @RequestMapping("/hello")
    public String hello() {
//        System.out.println("hello");
        return "hello";
    }
}
